﻿using System;
using System.ComponentModel.DataAnnotations;

namespace K9Nano.Domain
{
    public interface IDeletionAudited: IAudited, ISoftDelete
    {
        Guid? DeleterUserId { get; set; }
        DateTimeOffset? DeletionTime { get; set; }
    }

    public class DeletionAuditedEntity : Entity, IDeletionAudited
    {
        public virtual Guid? DeleterUserId { get; set; }
        public virtual DateTimeOffset? DeletionTime { get; set; }
        [Required]
        public virtual bool IsDeleted { get; set; }
    }
}